Skip to content

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented May 15, 2025

There are two errors here being handled

  • Random finaldestination lookup errors when hitting the API. This is not automatically caught at the translate method on purpose, but rather at the usages.
  • validation errors when updating locale. Sometimes posts are created bypassing validations, when updating the locale, we need to bypass validation as well else the locale can never be updated.

Comment on lines +23 to +24
rescue FinalDestination::SSRFDetector::LookupFailedError
# do nothing, there are too many sporadic lookup failures
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to consider queuing the job again instead with some delay? I'm curious what happens if we do nothing here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't need to. This job itself is not critical as the backfill scheduled job will cover any failures. The backfill does most recent posts first.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the clarification!

@nattsw nattsw merged commit 247b890 into main May 15, 2025
6 checks passed
@nattsw nattsw deleted the ignore-lookup-errors branch May 15, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants